<?php
class Control_Header_Default extends QUI_Control_Abstract {
    function render() {
        $user = Helper_RBAC::get('user');
        $condi[] = new QDB_Cond(
            'parent_id = ?', 0
        );
//        $condi[] = new QDB_Cond(
//            '[fields.hidden] = ?', 0
//        );
        $this->_view['drop_searchtype'] = Column::droplist($condi, array('name'=>'col_id', 'id'=>'searchtype'), null, array(Helper_Common::iniFront('skipsearch_column_id')));
        $menus = Column::find('[fields.hidden] = ?', 2)->all()->order('sort DESC')->query();
        //        dump($menus);
        $this->_view['menus'] = $menus;
        $this->_view['user'] = $user;
        return $this->_fetchView('view:' .Helper_Common::currentStyle(). '/_control/header');
    }

}
?>